package com.firewolf.wx.controller;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller("tree")
public class TreeContronller {
	
	@RequestMapping("nodes1")
	@ResponseBody
	public List<TreeNode1> nodes1(){
		return Arrays.asList(
				new TreeNode1("0","-1","商品分类"),
				new TreeNode1("1","0","电子产品"),
				new TreeNode1("2","0","服装服饰"),
				new TreeNode1("3","0","生活必备"),
				new TreeNode1("4","1","高清相机"),
				new TreeNode1("5","1","笔记本电脑")
				);
	}
}
